package com.web.admin.controller;

import com.web.dao.model.common.ResultVo;
import com.web.dao.result.ResultVoUtil;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.authz.annotation.RequiresAuthentication;
import org.apache.shiro.authz.annotation.RequiresPermissions;
import org.apache.shiro.authz.annotation.RequiresRoles;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 游客
 * @author zhang-rongyao
 * @version V 1.0
 * @Package com.fapiao.layui.controller
 * @date 2021/1/7/007 16:32
 */
@Slf4j
@RestController
@RequestMapping(value = "/guest")
public class GuestController {

    @GetMapping(value = "/get")
//    @RequiresRoles("admin")
    @RequiresAuthentication
    public ResultVo test(){
        log.info("成功");
        return ResultVoUtil.success("成功");
    }

}
